package com.key.modules.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.key.modules.cache.MybatisCache;
import com.key.modules.dto.IndentDTO;
import com.key.modules.entity.OrderForm;

import com.key.modules.vo.IndentVO;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
@CacheNamespace(implementation = MybatisCache.class,eviction= MybatisCache.class)
public interface IndentMapper extends BaseMapper<OrderForm> {
    /**
     * 根据前端条件分页查询符合条件的订单信息
     * @param page
     * @param indentDTO
     * @return
     */
    Page<IndentVO> selectIndentByDTO(@Param("page") Page<IndentVO> page, @Param("indentDTO") IndentDTO indentDTO);
}
